
<%@ page import="com.pandorasoft.shop.Shop" %>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'shop.label', default: 'Shop')}" />
	<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>

<body>

<section id="show" class="first">

	<table class="table">
		<tbody>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.id.label" default="Id" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: shopInstance, field: "id")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.name.label" default="Name" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: shopInstance, field: "name")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.province.label" default="Province" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: shopInstance, field: "province")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.location.label" default="Location" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: shopInstance, field: "location")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.tel.label" default="Tel" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: shopInstance, field: "tel")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.phone.label" default="Phone" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: shopInstance, field: "phone")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.googleMap.label" default="Google Map" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: shopInstance, field: "googleMap")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.company.label" default="Company" /></td>
				
				<td valign="top" class="value"><g:link controller="company" action="show" id="${shopInstance?.company?.id}">${shopInstance?.company?.encodeAsHTML()}</g:link></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.consumers.label" default="Consumers" /></td>
				
				<td valign="top" style="text-align: left;" class="value">
					<ul>
					<g:each in="${shopInstance.consumers}" var="c">
						<li><g:link controller="consumer" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></li>
					</g:each>
					</ul>
				</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.dateCreated.label" default="Date Created" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${shopInstance?.dateCreated}" /></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.employees.label" default="Employees" /></td>
				
				<td valign="top" style="text-align: left;" class="value">
					<ul>
					<g:each in="${shopInstance.employees}" var="e">
						<li><g:link controller="employee" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
					</g:each>
					</ul>
				</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.lastUpdated.label" default="Last Updated" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${shopInstance?.lastUpdated}" /></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="shop.shopType.label" default="Shop Type" /></td>
				
				<td valign="top" class="value"><g:link controller="shopType" action="show" id="${shopInstance?.shopType?.id}">${shopInstance?.shopType?.encodeAsHTML()}</g:link></td>
				
			</tr>
		
		</tbody>
	</table>
	<div class="buttons">
		<g:form>
			<g:hiddenField name="id" value="${shopInstance?.id}" />
			<span class="button"><g:actionSubmit class="edit btn-primary" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
			<span class="button"><g:actionSubmit class="delete btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
		</g:form>
	</div>
</section>

</body>

</html>
